const mongoose = require('mongoose')

mongoose.connect('mongodb://localhost:27017/juejin', {
  useNewUrlParser: true, 
  useCreateIndex: true,
  useUnifiedTopology: true
})

const db = mongoose.connection

module.exports = db